all:publish_client consume_client
publish_client : publish_client.cc ../common/project.pb.cc ../common/message.pb.cc /usr/include/muduo/proto/codec.cc
	g++ -g -std=c++11 $^ -o $@ -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz
consume_client : consume_client.cc ../common/project.pb.cc ../common/message.pb.cc /usr/include/muduo/proto/codec.cc
	g++ -g -std=c++11 $^ -o $@ -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz
.PHONY:clean
clean:
	rm -rf publish_client consume_client